package mk.basic;

import java.util.Scanner;

public class GuGuDan {

	public static void main(String[] args) {
		Scanner sc = null;
		
		System.out.print("몇단을 출력할까요?: ");
		
		int num;
		int i;
		  sc = new Scanner(System.in);
		  num = sc.nextInt();
		  
		  
		  sc.close(); 
		  
		  if(num<1 || num>9){ System.out.println("1~9 숫자를 입력하세요!!!");}
		  else{
		   for(i =1; i<=9; i++)
		   {
		    System.out.println(num+"x"+i+"="+(num*i));
		   }
		  } 

	}

}
